home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / docs / mags / AmZ_4_AG.lha / AmZeiger / Bin / muistubs.c < prev    next >
C/C++ Source or Header  |  1998-03-08  |  2KB  |  52 lines

  1. #include <exec/types.h>
  2. #include <intuition/classes.h>
  3. #include <utility/tagitem.h>
  4.  
  5. /**********************************************/
  6. /* Stub functions to be used in applications. */
  7. /* A call to one function invokes linkage of  */
  8. /* all functions !                            */
  9. /**********************************************/
  10.  
  11. Object *MUI_NewObjectA      (char *classname,struct TagItem *tags);
  12. Object *MUI_MakeObjectA     (LONG type,ULONG *params);
  13. LONG    MUI_RequestA        (APTR app,APTR win,LONGBITS flags,
  14.                              char *title,char *gadgets,char *format,
  15.                              APTR params);
  16. APTR    MUI_AllocAslRequest (unsigned long reqType,
  17.                              struct TagItem *tagList);
  18. BOOL    MUI_AslRequest      (APTR requester, struct TagItem *tagList);
  19.  
  20. #pragma amicall(MUIMasterBase,0x1e,MUI_NewObjectA(a0,a1))
  21. #pragma amicall(MUIMasterBase,0x2a,MUI_RequestA(d0,d1,d2,a0,a1,a2,a3))
  22. #pragma amicall(MUIMasterBase,0x30,MUI_AllocAslRequest(d0,a0))
  23. #pragma amicall(MUIMasterBase,0x36,MUI_AslRequest(a0,a1))
  24. #pragma amicall(MUIMasterBase,0x78,MUI_MakeObjectA(d0,a0))
  25.  
  26. Object *MUI_NewObject(char *classname, Tag tag1, ...)
  27. {
  28.    return(MUI_NewObjectA(classname, (struct TagItem *) &tag1));
  29. }
  30.  
  31. Object *MUI_MakeObject(LONG type, ULONG arg1, ...)
  32. {
  33.    return(MUI_MakeObjectA(type, &arg1));
  34. }
  35.  
  36. LONG MUI_Request(APTR app,APTR win,LONGBITS flags,char *title,
  37.                  char *gadgets,char *format, APTR arg1, ...)
  38. {
  39.    return(MUI_RequestA(app, win, flags, title, gadgets, format, &arg1));
  40. }
  41.  
  42. APTR MUI_AllocAslRequestTags(unsigned long reqType, Tag tag1, ...)
  43. {
  44.    return(MUI_AllocAslRequest(reqType, (struct TagItem *) &tag1));
  45. }
  46.  
  47. BOOL MUI_AslRequestTags(APTR requester, Tag tag1, ...)
  48. {
  49.    return(MUI_AslRequest(requester, (struct TagItem *) &tag1));
  50. }
  51.  
  52.